$("#fileImport").click(function() {
    $("#files").click()
});

function fileImport() {
    document.getElementById('fileImport_text').value = name;
    var reader = new FileReader();
    reader.onload = function() {
        console.log(this.result);
    };
};

$('#submit_import').click(function() {
    var files = $("#files").val();
    $.ajax({
        url: Feng.ctxPath + "/customerUpload/upload",
        type: "post",
        data: {
            "file": files
        },
        success: function(data) {
            alert('成功!')
        },
        error: function(data) {
            alert('请稍后再试!')
        }
    })
});